package Model;

import Engine.AFactory;
import View.AView;

/**
 *
 */
public class Application implements IApplication {

    private IProduct product;
    private AFactory factory;

    public Application(IProduct product, AFactory factory) {
        this.product = product;
        this.factory = factory;
    }

    public Application(AFactory factory) {
        this.factory = factory;
    }

    public Application() {
    }

    /*
     *
     */
    @Override
	public IProduct getProduct() {
        return product;
    }

	/* 
	 * 
	 */
    @Override
	public void setProduct(IProduct product) {
        this.product = product;
    }
    
    /**
     * Methodes pour les commandes
     */
    @Override
	public void createProduct(AView view) {
		product=new Product(view.getTitre(), view.getDescription(), view.getObjectif());
	}

	@Override
	public void createStory(AView view){
		
	}

	@Override
	public void changeStory(AView view) {
		// TODO 	
	}
	
	

}
